package com.example.bilibiliprojectspringboot.controller;


import com.example.bilibiliprojectspringboot.result.Result;
import com.example.bilibiliprojectspringboot.service.NavService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/navs")
@Tag(name="nav控制器", description="NavController测试")
public class NavController {

  @Autowired
  NavService navService;


  @GetMapping("")
  public Result selectAll(){
    return Result.success(navService.selectAll());
  }
}
